// component/countTime/countTime.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    titleMsg: {
      type: String,
      value: ' ',

    },
    inputPlaceHalder: {

      type: String,

      value: ' ',

    },



    inputHidden: {

      type: Boolean,

      value: true

    },



    dialogHidden: {

      type: Boolean,

      value: true

    },
    inputMsg: {

      type: String,

      value: '请输入你他妈想干嘛',

    },

    //确定

    determineBtn: {

      type: String,

      value: 'default value',

    },

    //取消

    cancleBtn: {

      type: Boolean,

      value: true,

    },

  },
  created: function() {
    console.log(this.properties.titleMsg) 
  },
  /**
   * 组件的初始数据
   */
  data: {
    inputValue: "",
    onCancleClick: false,
  },

  /**
   * 组件的方法列表
   */
  methods: {
    bindKeyInput: function (e) {
      this.setData({
        inputValue: e.detail.value

      })
  },
    cancleBtn: function () {
      // Properties pro = new Properties();
      console.log("点击取消按钮")
      this.setData({
        dialogHidden: true,

      })
    },
    determineBtn: function () {
      var determineDetail =
        this.data.inputValue // detail对象，提供给事件监听函数

      this.triggerEvent('determineevent', determineDetail)

      this.setData({

        inputValue: ""

      })
    }
  }
})
